package com.botu.sentineldemo1.controller;

import com.botu.sentineldemo1.feign.client.EchoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: hanzeyao
 * @Date: 2019/12/6 10:56
 * @Description:
 */
@RestController
public class FeignController {

    @Autowired
    private EchoService echoService;

    @GetMapping("echo/feign")
    public String echo(){
        return echoService.echo();
    }
}
